﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Mvc;

namespace LeMigue.TeamPortal.Base.Helpers
{
    public static class HtmlUtilHelper
    {
        public static string Hidden(this HtmlHelper helper, string text, object value, bool id)
        {
            if(id)
                return String.Format("<input type=\"hidden\" name=\"{0}\" id=\"{0}\" value=\"{1}\" />", text, value.ToString());
            else
                return String.Format("<input type=\"hidden\" name=\"{0}\" value=\"{1}\" />", text, value.ToString());
        }
    }
}
